package sensorSelectionFramework;

public class SensorSelectionTest {
	
	private static final int OPTIMAL_BUDGET = 63;
	private OptimalSensorsSet optimalSensorsSet = new OptimalSensorsSet();
	private SelectionControl selectionControl = new SelectionControl();
	
	
	
	public static void main(String[] arg)
	{
		SensorSelectionTest selectionTest = new SensorSelectionTest();
		SensorSet inputSet = selectionTest.MockSensorSet();
		selectionTest.SetOptimalOptions();
		selectionTest.selectionControl.RamdomSelection(inputSet);
		selectionTest.optimalSensorsSet.setSensorList(selectionTest.selectionControl.getOptimalSensorsSet().getSensorList());
		selectionTest.optimalSensorsSet.printSetElement();
		
	}
	
	private SensorSet MockSensorSet()
	{
		SensorSet sensorSet = new SensorSet();
		Sensor sensor1 = new Sensor(1,23,43);
		Sensor sensor2 = new Sensor(2,34,12);
		Sensor sensor3 = new Sensor(3,54,33);
		Sensor sensor4 = new Sensor(4,108,2);
		Sensor sensor5 = new Sensor(3,22,38);
		
		sensorSet.getSensorList().add(sensor1);
		sensorSet.getSensorList().add(sensor2);
		sensorSet.getSensorList().add(sensor3);
		sensorSet.getSensorList().add(sensor4);
		sensorSet.getSensorList().add(sensor5);
		
		return sensorSet;
		
	}
	
	private void SetOptimalOptions()
	{
		optimalSensorsSet.setBudget(OPTIMAL_BUDGET);
	}

}
